package com.AOP;

import com.yangbwe.Springtest.SpringAOP.DosomeService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AOPtest {
    @Test
    public void dotest(){
        String config="AOP/Aop.xml";
        ApplicationContext applicationContext =new ClassPathXmlApplicationContext(config);
        DosomeService proxy= (DosomeService) applicationContext.getBean("SomeService");
//        proxy.dosome("张三","23");
        String str = proxy.dosome2("李四", "24");
        System.out.println(str+"这是test类中的返回结果");


    }
}
